import request from '@/utils/request'
import defaultSettings from '@/settings'
import { praseStrEmpty } from '@/utils/ruoyi'

//客户账户扣款管理应答录入查询
export const apiUrlConfigEntry = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/custAccDeductionManageAnswer/CustAccDeductionAnswerEntry/search`,
}


//客户账户扣款管理应答录入明细查询
export const apiUrlConfigEntryDetailTabSearch = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/custAccDeductionManageAnswer/CustAccDeductionAnswerEntry/detailTabSearch`,
}

// 客户账户扣款管理应答录入明细
export function custAccDeductionAnswerEntryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/custAccDeductionManageAnswer/CustAccDeductionAnswerEntry/detail`,
    method: 'get',
    params:{id:data.id}
  })
}


// 客户账户扣款管理应答录入提交
export function custAccDeductionAnswerEntrySave(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/custAccDeductionManageAnswer/CustAccDeductionAnswerEntry/save`,
    method: 'post',
    data:data
  })
}

//客户账户扣款管理应答审核查询
export const apiUrlConfigApprove = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/custAccDeductionManageAnswer/CustAccDeductionAnswerApprove/search`,
}

export const apiUrlConfigApprove371Qry = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/custAccDeductionManageAnswer/CustAccDeductionAnswerApprove/approveDtlTab371Qry`,
}


export const apiUrlConfigApprove372Qry = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/custAccDeductionManageAnswer/CustAccDeductionAnswerApprove/approveDtlTab372Qry`,
}


// 客户账户扣款管理应答审核明细
export function custAccDeductionAnswerApproveDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/custAccDeductionManageAnswer/CustAccDeductionAnswerApprove/detail`,
    method: 'get',
    params:{id:data.id}
  })
}

// 客户账户扣款管理应答审核通过
export function custAccDeductionAnswerApproveApprove(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/custAccDeductionManageAnswer/CustAccDeductionAnswerApprove/approve`,
    method: 'post',
    data:data
  })
}

//客户账户扣款管理应答审核拒绝
export function custAccDeductionAnswerApproveReject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/custAccDeductionManageAnswer/CustAccDeductionAnswerApprove/reject`,
    method: 'post',
    data:data
  })
}
